package com.lin.fengxiu.core.configuration;

import com.lin.fengxiu.core.interceptors.PermmissionInterceptor;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName InterceptorConfiguration
 * @Description TODO 注册拦截器
 * @Author wushaopei
 * @Date 2021/3/23 6:26
 * @Version 1.0
 */
@Component
public class InterceptorConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new PermmissionInterceptor());
    }
}
